package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 sys_course
 * 
 * @author YJF
 * @date 2023-05-17
 */
public class SysCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long courseId;

    /** 编号 */
    private Long courseNo;

    /** 创建者ID */
    private Long userId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程分类 */
    @Excel(name = "课程分类")
    private Integer courseType;

    private String courseTypeName;

    /** 简介 */
    @Excel(name = "简介")
    private String courseRemark;

    /** 封面 */
    @Excel(name = "封面")
    private String courseCover;

    /** 详情 */
    @Excel(name = "详情")
    private String courseInfo;

    /** 课时ID */
    @Excel(name = "课时ID")
    private Long periodId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer courseSort;

    /** 来源 */
    @Excel(name = "来源")
    private Integer courseSource;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    /** 发布状态 */
    @Excel(name = "发布状态")
    private Integer releaseStatus;

    /** 删除标志 */
    private String delFlag;

    /** 创建者昵称 */
    private String nickName;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(Long courseNo) {
        this.courseNo = courseNo;
    }

    public Long getUid() {
        return userId;
    }

    public void setUid(Long userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setCourseType(Integer courseType) 
    {
        this.courseType = courseType;
    }

    public Integer getCourseType() 
    {
        return courseType;
    }

    public String getCourseTypeName() {
        return courseTypeName;
    }
    public void setCourseTypeName(String courseTypeName) {
        this.courseTypeName = courseTypeName;
    }

    public void setCourseRemark(String courseRemark)
    {
        this.courseRemark = courseRemark;
    }

    public String getCourseRemark() 
    {
        return courseRemark;
    }
    public void setCourseCover(String courseCover) 
    {
        this.courseCover = courseCover;
    }

    public String getCourseCover() 
    {
        return courseCover;
    }
    public void setCourseInfo(String courseInfo) 
    {
        this.courseInfo = courseInfo;
    }

    public String getCourseInfo() 
    {
        return courseInfo;
    }
    public void setPeriodId(Long periodId) 
    {
        this.periodId = periodId;
    }

    public Long getPeriodId() 
    {
        return periodId;
    }
    public void setCourseSort(Integer courseSort) 
    {
        this.courseSort = courseSort;
    }

    public Integer getCourseSort() 
    {
        return courseSort;
    }
    public void setCourseSource(Integer courseSource) 
    {
        this.courseSource = courseSource;
    }

    public Integer getCourseSource() 
    {
        return courseSource;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setReleaseStatus(Integer releaseStatus) 
    {
        this.releaseStatus = releaseStatus;
    }

    public Integer getReleaseStatus() 
    {
        return releaseStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("courseType", getCourseType())
            .append("courseTypeName", getCourseTypeName())
            .append("courseRemark", getCourseRemark())
            .append("courseCover", getCourseCover())
            .append("courseInfo", getCourseInfo())
            .append("periodId", getPeriodId())
            .append("courseSort", getCourseSort())
            .append("courseSource", getCourseSource())
            .append("releaseTime", getReleaseTime())
            .append("releaseStatus", getReleaseStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
